FROM node:20.3.0 as builder
WORKDIR /app
COPY . /app
RUN yarn install
# COPY . .
RUN yarn build
FROM nginx:1.21.6
COPY nginx.conf /etc/nginx
COPY --from=builder /app/build  /usr/share/nginx/html
